package com.mfhcd.facepay.adapter;

import androidx.annotation.NonNull;

import com.mfhcd.facepay.R;
import com.mfhcd.facepay.databinding.CommonBottomMenuItemBinding;
import com.mfhcd.facepay.model.TypeModel;
import com.mfhcd.facepay.viewholder.ViewHolder;

import java.util.List;


/**
 * @Author：张洪顺
 * @E-Mail: zhanghs@mfhcd.com
 * @Date：2019-09-25 17:11
 * @版权所有 © 现代金融控股（成都）有限公司
 * @描述：
 */
public class BottomPopupListAdapter extends BaseAdapter<TypeModel, CommonBottomMenuItemBinding> {

    public BottomPopupListAdapter(List<TypeModel> itemModels) {
        super(R.layout.common_bottom_menu_item, itemModels);
    }

    @Override
    protected void convert(@NonNull ViewHolder<CommonBottomMenuItemBinding> helper, TypeModel item) {
        helper.binding.setItem(item);
        helper.binding.executePendingBindings();
    }
}
